using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy
{
    class Student:IComparable<Student>
    {
        public string Name { get; set; }
        public int Num { get; set; }
        public int Age { get; set; }

        public Student(string name, int num, int age) {
            Name = name;
            Num = num;
            Age = age;
        }
        public override string ToString()
        {
            return $"姓名：{Name},学号：{Num},年龄：{Age}";
        }

        public int CompareTo(Student other)
        {
            throw new NotImplementedException();
        }
    }
}